package com.chris.homecare.components
{
	import feathers.controls.LayoutGroup;
	
	import starling.display.Quad;
	
	public class TextInputSkin extends LayoutGroup
	{

		private var outlineQuad:Quad;
		private var backgroundQuad:Quad;
		public function TextInputSkin()
		{
			super();
		}
		
		override protected function initialize():void
		{
			outlineQuad = new Quad(2,2, 0xb3b2b2);
			backgroundQuad = new Quad(2,2, 0xf3f3f3);
			
			backgroundQuad.x = backgroundQuad.y = 1;
			
			addChild(outlineQuad);
			addChild(backgroundQuad);
			
			super.initialize();
		}
		
		override protected function draw():void
		{
			outlineQuad.width = this.width;
			outlineQuad.height = this.height;
			backgroundQuad.width = this.width - 2;
			backgroundQuad.height = this.height - 2;
			
			super.draw();
		}
		
	}
}